Skip to content

Cap pytest below 9.2 for pytest-asyncio compatibility - #2113

Merged
VegetarianOrc merged 1 commit into
mainfrom
amazzeo/cap-pytest-below-9.2
Nov 10, 2026
Merged

VegetarianOrc merged 1 commit into
mainfrom
amazzeo/cap-pytest-below-9.2

Conversation

@VegetarianOrc

Copy link
Copy Markdown
Contributor

Summary

  • Cap the development dependency at pytest>=9.0,<9.2 while retaining pytest-asyncio 0.21.
  • Document the compatibility constraint and synchronize lockfile metadata without changing locked package versions.

Why

The latest-dependencies CI job began selecting pytest 9.2.0 after it crossed the two-week release cutoff. pytest-asyncio 0.21.2 accesses FixtureManager._arg2fixturedefs, which was removed in pytest 9.2, causing test collection to fail. This cap keeps CI on a compatible version until the plugin and session-scoped event-loop fixtures are migrated.

Validation

  • uv lock --check --offline passed.
  • poe test -s -n 0 tests/test_update_core.py tests/test_prepare_release.py: 17 passed with pytest 9.1.1.
  • git diff --check passed.
  • Full CI and the full test suite were not run locally.

No changelog fragment: development/test dependency compatibility only.

@VegetarianOrc VegetarianOrc added the skip-changelog PR changes do not require changelog updates label Nov 10, 2026
@VegetarianOrc
VegetarianOrc requested a review from a team as a code owner November 10, 2026 21:45
@VegetarianOrc
VegetarianOrc enabled auto-merge (squash) November 10, 2026 21:48
@VegetarianOrc
VegetarianOrc merged commit 1f10991 into main Nov 10, 2026
34 of 37 checks passed
@VegetarianOrc
VegetarianOrc deleted the amazzeo/cap-pytest-below-9.2 branch November 10, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog PR changes do not require changelog updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants